print Document
Handles the connection, the print request, and the closing of the connection when completed. This method takes a list of PrintObject instances and prints them accordingly. Prints a list of different print objects based on the provided list. The print objects can represent various types, including lines, empty lines, barcodes, images, etc.
Return
PrintResult - Status.Success or Status.Failure with an optional message.
Parameters
document
A list of PrintObject instances, each representing a specific print object to be printed.